<template>
  <!--<i @click.prevent="screenfull" class="iconfont icon-full"></i>-->
  <i @click.prevent="screenfull">
    <img src="/static/images/MaxMini.png" style="width: 27px; height: 21px;"/>
  </i>
</template>

<script>
import screenfull from 'screenfull'

export default {
  name: 'Screenfull',
  props: {
    width: {
      type: Number,
      default: 22
    },
    height: {
      type: Number,
      default: 22
    },
    fill: {
      type: String,
      default: '#48576a'
    }
  },
  data() {
    return {
      isFullscreen: false
    }
  },
  methods: {
    screenfull() {
      if (!screenfull.enabled) {
        this.$message({
          message: 'you browser can not work',
          type: 'warning'
        })
        return false
      }
      screenfull.toggle()
    }
  }
}
</script>

<style scoped>
  .icon-full {
  cursor: pointer;
}
</style>
